package com.rerun.entity;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;
/**
 * app版本迭代记录
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /9/25 13:16
 */
@TableName("app_version")
public class AppVersion extends Model<AppVersion> {

    private static final long serialVersionUID = 3025109225364976630L;

    @TableId(type = IdType.UUID)
    private String appId;
    private String appType;
    private String operatingSystem;
    private String patchNote;
    private Date createTime;
    private String versionCode;
    private String forceUpdate;


    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppType() {
        return appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    public String getOperatingSystem() {
        return operatingSystem;
    }

    public void setOperatingSystem(String operatingSystem) {
        this.operatingSystem = operatingSystem;
    }

    public String getPatchNote() {
        return patchNote;
    }

    public void setPatchNote(String patchNote) {
        this.patchNote = patchNote;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode;
    }

    public String getForceUpdate() {
        return forceUpdate;
    }

    public void setForceUpdate(String forceUpdate) {
        this.forceUpdate = forceUpdate;
    }

    @Override
    protected Serializable pkVal() {
        return appId;
    }

    @Override
    public String toString() {
        return "{" +
                "appId:" + appId +
                ", appType:" + appType +
                ", operatingSystem:" + operatingSystem +
                ", patchNote:" + patchNote +
                ", createTime:" + createTime +
                ", versionCode:" + versionCode +
                ", forceUpdate:" + forceUpdate +
                '}';
    }
}
